<?php
/**
 * Created by PhpStorm.
 * User: 86131
 * Date: 2021/12/5
 * Time: 上午 10:10
 */

print_r($_FILES);
echo '<br />';

echo $_FILES['icons']['name'];
echo '<br />';

echo $_FILES['icons']['type'];
echo '<br />';

echo $_FILES['icons']['tmp_name'];
echo '<br />';

echo $_FILES['icons']['error'];
echo '<br />';

echo $_FILES['icons']['size'];
echo '<br />';

//图片存放的后缀格式
$suffix = explode('.',$_FILES['icons']['name']);


move_uploaded_file($_FILES['icons']['tmp_name'],'public/imgs/'.$_FILES['icons']['name'].'.'.$suffix);






